<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initDoctype()
	{
		$this->bootstrap('view');
		$view = $this->getResource('view');
		$view->doctype('XHTML1_STRICT');
	}

	protected function _initAutoload()
	{
		$autoloader = new Zend_Application_Module_Autoloader(array(
			'namespace' => 'Nutri',
			'basePath'  => APPLICATION_PATH,
			'resourceTypes' => array (
				'model' => array(
					'path' => 'models',
					'namespace' => 'Model',
				),
				'mappers' => array (
					'path' => 'models/Mapper/',
					'namespace' => 'Mapper',
				),
				'filters' => array(
					'path' => 'filters',
					'namespace' => 'Filter',
				),
				'forms' => array(
					'path' => 'forms',
					'namespace' => 'Form',
				)
			),
		));
		return $autoloader;
	}
	
	
	protected function _initConfig()
	{
	    $config = new Zend_Config($this->getOptions(), true);
	    Zend_Registry::set('config', $config);
	    return $config;
	}
}

